<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://localhost:10000/js/jquery-1.11.3.min.js" type="text/javascript"></script>
    <script src="http://localhost:10000/js/select.js" type="text/javascript"></script>
</head>
<body>
<h4>入库管理>>入库单明细查询</h4>
<form>
    <table border="1px">
        <tr>
            <td>
                入库时间
            </td>
            <td>
                <input type="date" id="start"  th:value="${session.start33}">/<input type="date" id="end" th:value="${session.end33}">
            </td>
        </tr>
        <tr>
            <td>
                入库单号
            </td>
            <td>
                <input type="text" id="billID" th:value="${session.billID33}">
            </td>
        </tr>
        <tr>
            <td>
                货主名
            </td>
            <td>
                <input type="text" id="custName" th:value="${session.custName33}">
            </td>
        </tr>
        <tr>
            <td>

            </td>
            <td>
                <input type="button" id="selectruku" value="查询">
            </td>
        </tr>
    </table>
</form>

<input type="hidden" id="num" th:value="${session.num33}"/>
<input type="hidden" id="size" th:value="${session.size33}"/>

<table th:if="${session.pageInfo33 != null}">
    <tr>
        <button type="button" th:value="${session.pageInfo33.getPageNum()>1?session.pageInfo33.getPageNum()-1:session.pageInfo33.getPageNum()}"
                onclick="lastpage(this.value)">上一页
        </button>
        <select name="pageSize" id="pageSize" onchange="getpage(this.value)">
            <option value="5" th:selected="${session.size33 == 5}">5</option>
            <option value="10" th:selected="${session.size33 == 10}">10</option>
            <option value="15" th:selected="${session.size33 == 15}">15</option>
        </select>
        <button th:value="${session.pageInfo33.getPageNum()<session.pageInfo33.getPages()?session.pageInfo33.getPageNum()+1:session.pageInfo33.getPageNum()}"
                onclick="lastpage(this.value)">下一页
        </button>
    </tr>
</table>
<table border="1px" style="margin-top: 15px"  id="selectxiangq">

    <tr>
        <td>明细号</td>
        <td>货主</td>
        <td>托盘</td>
        <td>货物名称</td>
        <td>验货员</td>
        <td>仓管员</td>
        <td>入库数量</td>
        <td>规格</td>
        <td>当前数量</td>
        <td>编辑时间</td>
    </tr>

    <tfoot th:if="${session.pageInfo33!=null}">
        <tr th:each="every:${session.pageInfo33.getList()} ">
            <td th:text="${every.get('detailsID')} == null?'null':${every.detailsID}"></td>
            <!--<td th:text="${every.detailsID}"></td>-->
            <td th:text="${every.get('custName')} == null?'null':${every.custName}"></td>
            <td th:text="${every.get('trayID')} == null?'null':${every.trayID}"></td>
            <td th:text="${every.get('detailsGoodsName')} == null?'null':${every.detailsGoodsName}"></td>
            <td th:text="${every.get('detailsAffirmant')} == null?'null':${every.detailsAffirmant}"></td>
            <td th:text="${every.get('detailsConservator')} == null?'null':${every.detailsConservator}"></td>
            <td th:text="${every.get('detailsGoodsNum')} == null?'null':${every.detailsGoodsNum}"></td>
            <td th:text="${every.get('detailsGoodsSpec')} == null?'null':${every.detailsGoodsSpec}"></td>
            <td th:text="${every.get('currentGoodsNum')} == null?'null':${every.currentGoodsNum}"></td>
            <td th:text="${every.get('detailsEditTime')} == null?'null':${every.detailsEditTime}"></td>
        </tr>
    </tfoot>
</table>
<br><br>
<table border="1px">
    <tr>
        <td>业务单明细号</td>
        <td><input type="text"></td>
    </tr>
    <tr>
        <td>商品名称</td>
        <td><input type="text"></td>
    </tr>
    <tr>
        <td>规格</td>
        <td><input type="text"></td>
    </tr>
    <tr>
        <td>件数</td>
        <td><input type="text"></td>
    </tr>
</table>
</body>
</html>